// todo
class Task {
  log(t) {
    console.log(t)
    return this
  }
  async wait(time){
    await new Promise((resolve, reject) => setTimeout(resolve, time*1000));
    return this
  }
}

const t = new Task();
t
.log(1)
.log(2)
.wait(2)
.log(4)
// .wait(5)
// .log(6)
